/config.log
/config.status
/cscope.out
+/debug/
/gpsbabel
/gpsbabel-debug
/gpsbabel_coverage.xml
/Makefile
/makelinuxdist.sh
/objects/
+/release/
*.swp
/tmp/
/Makefile
track = route_head_alloc();
track_add_head(track);
} else if (strncmp(name, "NAME:", 5) == 0) {
- wpt->shortname = QString::fromLatin1(((char*)&name) + 5);
+ wpt->shortname = QString::fromLatin1(name + 5);
}
QString time_string(cin);
# define M_PI 3.14159265358979323846
#endif
-constexpr double FEET_TO_METERS(double feetsies) { return (feetsies) * 0.3048; };
-constexpr double METERS_TO_FEET(double meetsies) { return (meetsies) * 3.2808399; };
+constexpr double FEET_TO_METERS(double feetsies) { return (feetsies) * 0.3048; }
+constexpr double METERS_TO_FEET(double meetsies) { return (meetsies) * 3.2808399; }
-constexpr double NMILES_TO_METERS(double a) { return a * 1852.0;}; /* nautical miles */
-constexpr double METERS_TO_NMILES(double a) { return a / 1852.0;};
+constexpr double NMILES_TO_METERS(double a) { return a * 1852.0;} /* nautical miles */
+constexpr double METERS_TO_NMILES(double a) { return a / 1852.0;}
-constexpr double MILES_TO_METERS(double a) { return (a) * 1609.344;};
-constexpr double METERS_TO_MILES(double a) { return (a) / 1609.344;};
-constexpr double FATHOMS_TO_METERS(double a) { return (a) * 1.8288;};
+constexpr double MILES_TO_METERS(double a) { return (a) * 1609.344;}
+constexpr double METERS_TO_MILES(double a) { return (a) / 1609.344;}
+constexpr double FATHOMS_TO_METERS(double a) { return (a) * 1.8288;}
-constexpr double CELSIUS_TO_FAHRENHEIT(double a) { return (((a) * 1.8) + 32);};
-constexpr double FAHRENHEIT_TO_CELSIUS(double a) { return (((a) - 32) / 1.8);};
+constexpr double CELSIUS_TO_FAHRENHEIT(double a) { return (((a) * 1.8) + 32);}
+constexpr double FAHRENHEIT_TO_CELSIUS(double a) { return (((a) - 32) / 1.8);}
constexpr long SECONDS_PER_HOUR = 60L * 60;
constexpr long SECONDS_PER_DAY = 24L * 60 * 60;
/* meters/second to kilometers/hour */
-constexpr double MPS_TO_KPH(double a) { return (a)*SECONDS_PER_HOUR/1000.0;};
+constexpr double MPS_TO_KPH(double a) { return (a)*SECONDS_PER_HOUR/1000.0;}
/* meters/second to miles/hour */
-constexpr double MPS_TO_MPH(double a) { return METERS_TO_MILES(a) * SECONDS_PER_HOUR;};
+constexpr double MPS_TO_MPH(double a) { return METERS_TO_MILES(a) * SECONDS_PER_HOUR;}
/* meters/second to knots */
-constexpr double MPS_TO_KNOTS(double a) { return MPS_TO_KPH((a)/1.852);};
+constexpr double MPS_TO_KNOTS(double a) { return MPS_TO_KPH((a)/1.852);}
/* kilometers/hour to meters/second */
-constexpr double KPH_TO_MPS(double a) { return a * 1000.0/SECONDS_PER_HOUR;};
+constexpr double KPH_TO_MPS(double a) { return a * 1000.0/SECONDS_PER_HOUR;}
/* miles/hour to meters/second */
#define MPH_TO_MPS(a) (MILES_TO_METERS(a) / SECONDS_PER_HOUR)
/* knots to meters/second */
-constexpr double KNOTS_TO_MPS(double a) {return KPH_TO_MPS(a) * 1.852; };
+constexpr double KNOTS_TO_MPS(double a) {return KPH_TO_MPS(a) * 1.852; }
#define MILLI_TO_MICRO(t) ((t) * 1000) /* Milliseconds to Microseconds */
#define MICRO_TO_MILLI(t) ((t) / 1000) /* Microseconds to Milliseconds*/
bool validate_filters() const;
private:
-static void disp_help_url(const FilterVecs::fl_vecs_t& vec, const arglist_t* arg);
-static void disp_v1(const FilterVecs::fl_vecs_t& vec);
-static bool validate_filter_vec(const FilterVecs::fl_vecs_t& vec);
+static void disp_help_url(const fl_vecs_t& vec, const arglist_t* arg);
+static void disp_v1(const fl_vecs_t& vec);
+static bool validate_filter_vec(const fl_vecs_t& vec);
private:
ArcDistanceFilter arcdist;
double best_odometer_distance = 0;
for (auto cit = course.begin(); cit != course.end(); cit++) {
if (!cit->is_course_point) {
- double distance = gcgeodist(cit->lat, cit->lon, wpt.lat, wpt.lon);;
+ double distance = gcgeodist(cit->lat, cit->lon, wpt.lat, wpt.lon);
if (best_distance < 0 || distance < best_distance) {
best_distance = distance;
best_distance_it = cit;
if (max_qchars < 1) {
// We must have room for the terminator.
fatal(MYNAME ": igo8 header overflow.\n");
- };
+ }
// Write as many characters from the source as possible
// while leaving space for a terminator.
int n_src_qchars = std::min(max_qchars - 1, src.size());
bool topbitset = false;
// see if there's any utf-8 multi-byte chars
- QByteArray utf8 = str.toUtf8();
+ const QByteArray utf8 = str.toUtf8();
int len = utf8.size();
for (unsigned char byte : utf8) {
if (byte & 0x80) {
dmy = hms = 0;
sscanf(ibuf,"$PCMPT,%d,%d,%d,%c,%f,%d,%19[^,],%d,%f,%d,%f,%c,%d,%c,%d",
- &j1, &j2, &j3, &altflag, &alt, &j4, (char*) &coords,
+ &j1, &j2, &j3, &altflag, &alt, &j4, coords,
&j5, &f1, &j6, &f2, &u1, &dmy, &u2, &hms);
if (altflag == 'D' && curr_waypt && alt > 0) {
if (rte_sort_mode != SortModeRteHd::none) {
switch (rte_sort_mode) {
case SortModeRteHd::description:
- route_sort(SortFilter::sort_comp_rh_by_description);
+ route_sort(sort_comp_rh_by_description);
break;
case SortModeRteHd::name:
route_sort(sort_comp_rh_by_name);